import 'dart:async';

import 'package:get/get.dart';
import 'package:flutter/material.dart';
import 'package:qr_code_scanner/qr_code_scanner.dart';
import 'xin_he_qr_scanner_state.dart';

class XinHeQrScannerLogic extends GetxController with GetTickerProviderStateMixin{
  final XinHeQrScannerState state = XinHeQrScannerState();
  late AnimationController animationController;
  RxBool openFlashlight = false.obs ;
   Timer? _timer;
  final GlobalKey qrKey = GlobalKey(debugLabel: 'QR');
  StreamSubscription? subscription;

  QRViewController? controller;
  Barcode? result;

  @override
  void onClose() {
    // TODO: implement onClose
    controller?.dispose();

    super.onClose();

  }

}
